import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/login/index',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/admin/user/info',
    method: 'post'
  })
}

export function getList(data) {
  return request({
    url: '/admin/user/list',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/admin/user/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/admin/user/del',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/admin/user/update',
    method: 'post',
    data
  })
}

